import 'package:enterprise_v6_app/app/components/custom_app_bar.dart';
import 'package:enterprise_v6_app/app/components/custom_modele/custom_card.dart';
import 'package:enterprise_v6_app/app/components/custom_modele/custom_row_purple.dart';
import 'package:enterprise_v6_app/app/components/custom_modele/custom_row_title.dart';
import 'package:enterprise_v6_app/app/core/core.dart';

/// 资质证明
class QualificationCertificatePage extends StatelessWidget {
  const QualificationCertificatePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: AppColors.bg_color_grey,
      appBar: CustomAppBar(
        titleText: '资质证明',
      ),
      body: Container(
        padding: EdgeInsets.all(16.w),
        child: ListView.separated(
            itemCount: 3,
            itemBuilder: (context, index) {
              return CustomCard(
                title: '作业人：张三',
                content: Column(
                  children: [
                    const CustomRowPurple(title: '证书名称: ', content: '动火作业证、焊接证'),
                    AppGaps.vGap10,
                    const CustomRowTitle(title: '证书编号: ', content: '1234567890'),
                    const CustomRowTitle(title: '证书图片: ', content: ''),
                    Container(
                      padding: EdgeInsets.all(8.w),
                      child: ClipRRect(
                        borderRadius: BorderRadius.circular(8.w),
                        child: Image.network(
                          'https://scpic.chinaz.net/files/default/imgs/2023-03-26/dbefd1301cd287a4.jpg',
                          fit: BoxFit.cover,
                        ),
                      ),
                    )
                  ],
                ),
              );
            },
            separatorBuilder: (context, index) {
              return AppGaps.vGap16;
            }),
      ),
    );
  }
}
